package org.shopen.ai.puremvc.model.problem.cities
{
	import org.shopen.ai.puremvc.model.problem.IState;
	import org.un.cava.birdeye.ravis.graphLayout.data.INode;
	import org.un.cava.birdeye.ravis.graphLayout.data.Node;
	
	public class InState extends Node implements IState
	{		
		public function InState(node : INode)
		{
			super(node.id, node.stringid, null, node.data);
		}

		public function equals(state : IState) : Boolean
		{
			var result : Boolean = state.hash == this.hash;
			return result;
		}
		
		public function get hash() : uint
		{
			var result : uint = id;
			return result;
		}
		
		override public function toString() : String
		{
			var result : String = "In(" + data.@name + ")";
			return result;
		}
	}
}